# Maintainer: Umar Getagazov <umar@handlerug.me>
pkgname=treecat
pkgver=1.0.1
pkgrel=1
pkgdesc="Serialize a directory to a tree diagram, and vice versa"
url="https://sr.ht/~autumnull/treecat"
arch="x86_64 aarch64" # Hare
license="WTFPL"
makedepends="hare haredo scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~autumnull/treecat/archive/$pkgver.tar.gz"

build() {
	# https://todo.sr.ht/~sircmpwn/hare/784
	unset LDFLAGS
	haredo
}

check() {
	haredo test
}

package() {
	PREFIX="$pkgdir"/usr haredo install
}

sha512sums="
47d81c292fa3b738b8f94032d1d9ebe9ff9421218a466232384f54f9ac51695f62bd3958bc6b0cd0c20ee2e31ea4fbe650a22672725835df96b681f01fc8f213  treecat-1.0.1.tar.gz
"
